package com.glueball.crm.module.client.model;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@XmlAccessorType(XmlAccessType.NONE)
@XmlRootElement(name = "phonenumber")
@Document(collection="phonenumbers")
public class PhoneNumber implements Serializable {
    
    private static final long serialVersionUID = 1L;
    @XmlAttribute
    @Id
    private String  id;
    private Integer countryCode;
    private Integer areaCode;
    private Integer number;
    private Integer fromHour;
    private Integer fromMin;
    private Integer toHour;
    private Integer toMin;
    private String  language;
    private boolean sms = true;
    private boolean active = true;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(Integer countryCode) {
        this.countryCode = countryCode;
    }

    public Integer getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(Integer areaCode) {
        this.areaCode = areaCode;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getFromHour() {
        return fromHour;
    }

    public void setFromHour(Integer fromHour) {
        this.fromHour = fromHour;
    }

    public Integer getFromMin() {
        return fromMin;
    }

    public void setFromMin(Integer fromMin) {
        this.fromMin = fromMin;
    }

    public Integer getToHour() {
        return toHour;
    }

    public void setToHour(Integer toHour) {
        this.toHour = toHour;
    }

    public Integer getToMin() {
        return toMin;
    }

    public void setToMin(Integer toMin) {
        this.toMin = toMin;
    }

    public boolean isSms() {
        return sms;
    }

    public void setSms(boolean sms) {
        this.sms = sms;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }
}
